package com.tbs.easyhomemoneyserver.objectMapper

import com.tbs.easyhomemoneyserver.DO.SysUser
import com.tbs.easyhomemoneyserver.model.dto.UserDTO
import org.mapstruct.Mapper
import org.mapstruct.factory.Mappers

@Mapper(componentModel = "spring")
interface DtoConverter {

    companion object {
        val instance = Mappers.getMapper(DtoConverter::class.java)
    }

    fun user2UserDto(sysUser: SysUser): UserDTO;
}